package com.rongc.client.freight.base.view.activity;

import android.content.Context;
import android.text.ClipboardManager;
import android.view.View;

import com.rongc.client.core.utils.ActivityUtils;
import com.rongc.client.freight.R;
import com.rongc.client.freight.base.BaseActivity;

import butterknife.OnClick;

/**
 * Created by ccqx on 2017/6/28.
 */

public class ContactActivity extends BaseActivity implements View.OnClickListener{



    @OnClick({R.id.btn_mobile,R.id.btn_wx})
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_mobile:
//                String number = (String)v.getTag();
                ActivityUtils.callTo(this,"4001751988");
                break;
            case R.id.btn_wx:
                ClipboardManager cm = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);
                cm.setText("jyryohcd");
                ActivityUtils.toast("微信号已复制到剪贴板。");
                break;

        }
    }


    @Override
    public void initView() {
        initToolbar(R.string.supply_contact_title);
    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_contact;
    }


}
